package com.be.beadmin.logging.impl;

import com.be.beadmin.common.service.SysLogErrService;
import com.be.beadmin.common.service.SysLogService;
import com.be.beadmin.logging.dto.input.LogDto;
import com.be.beadmin.logging.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SysLogErrServiceImpl implements SysLogErrService {

    @Autowired
    LogService logService;


    @Override
    public void save(String username, String message) {
//        LogDto logDto = new LogDto();
//        logDto.setUsername(username);
//        logDto.setDescription(message);
//        logDto.setLogType("系统报错日志");
//        logService.addLog(logDto);
//        System.out.println( "userName:" + username);
//        System.out.println( "ErrMsg:" + message);
    }
}
